package com.jing.weibo.ws.sina.utils;

import weibo4j.Users;
import weibo4j.model.User;
import weibo4j.model.WeiboException;

public class UserUtil {

	//private static final Logger logger = Logger.getLogger(UserUtil.class);

	/**
	 * 根据用户ID获取用户信息
	 *
	 * @param uid			需要查询的用户ID
	 * @param token			授权的token
	 * @param user
	 * @return
	 * @throws WeiboException
	 */
	public static User showUserById(String uid, String token, Users user) throws WeiboException {
		// TODO Auto-generated method stub
		//logger.info("调用新浪接口: 根据用户ID[" + uid + "]获取用户信息");
		User userInfo = user.showUserById(uid, token);
		//logger.info("根据用户ID获取用户信息: " + userInfo.toString());
		return userInfo;
	}

}
